package com.myebills.ebpsfrontend.cust.controller;

import com.myebills.ebpsfrontend.cust.controller.*;
import com.myebills.ebpsfrontend.cust.utils.*;
import com.checkfree.isolutions.customer.persist.*;
import com.checkfree.isolutions.admin.ObjectId;
import com.checkfree.isolutions.statement.StatementSection;
import com.checkfree.isolutions.statement.persist.*;
import com.checkfree.isolutions.utility.CFiError;
import java.util.*;
import java.text.*;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.ibm.logging.ILogger;
import com.ibm.logging.IRecordType;

/**
 * Module Name  : CusBillListCheckComp_v1r00
 * Description  : Bill Listing for customer
 * Last Updated : 20013-07-23
 *
 * @author Ler
 *
 * Remarks :check if MSISDN exist in pervious statement
 *
 */

public class CusBillListCheckComp_v1r00 {
	
	public static List comparePreparation(Account account, EbppxEcsUser ecsUser){
		Vector cfiStatements = StatementUtil.getStatements(account, EbppxCusConstants.STMT_START_MONTH);
		List stmtDateList = new ArrayList();
		
		if(cfiStatements != null){
			for(int cficounts = 0; cficounts < cfiStatements.size(); cficounts++){
                final Date dtVal = ((Statement)cfiStatements.get(cficounts)).getDate();
                final DateFormat dfdisp = new SimpleDateFormat("dd MMM yyyy");
                String stdate = EbppxUtil.htmlEncode(dfdisp.format(dtVal));
				stmtDateList.add(stdate);
			}
			stmtDateList.add(stmtDateList);
		}
		
		return stmtDateList;
	}

}
